package net.toocruel.iqismart.entity.setting;

import net.toocruel.iqismart.entity.base.BaseEntity;

import javax.persistence.Entity;

/**
 * The type Setting.
 */
@Entity
public class SettingIrrigation extends BaseEntity {

    private static final long serialVersionUID = -4164265835421453504L;
    private Boolean verifyAnswer = false;
    private Boolean verifyArticle = false;
    private Boolean verifyComment = false;
    private Boolean verifyQuestion = false;
    private Boolean codeCreateAnswer = false;
    private Boolean codeCreateArticle = false;
    private Boolean codeCreateQuestion = false;
    private Boolean codeLogin = false;
    private Boolean codeRegister = false;
    private Integer answerLimitNumPerHour = 0;
    private Integer articleLimitNumPerHour = 0;
    private Integer questionLimitNumPerHour = 0;

    private Integer userInviteLimit = 10;

    private Integer editAnswerTimeout = 0;
    private Integer editArticleTimeout = 0;
    private Integer editQuestionTimeout = 0;

    private String codeUrl = "/code/image?width=60&height=20";

    public String getCodeUrl() {
        return codeUrl;
    }

    public void setCodeUrl(String codeUrl) {
        this.codeUrl = codeUrl;
    }

    public Integer getEditAnswerTimeout() {
        return editAnswerTimeout;
    }

    public void setEditAnswerTimeout(Integer editAnswerTimeout) {
        this.editAnswerTimeout = editAnswerTimeout;
    }

    public Integer getEditArticleTimeout() {
        return editArticleTimeout;
    }

    public void setEditArticleTimeout(Integer editArticleTimeout) {
        this.editArticleTimeout = editArticleTimeout;
    }

    public Integer getEditQuestionTimeout() {
        return editQuestionTimeout;
    }

    public void setEditQuestionTimeout(Integer editQuestionTimeout) {
        this.editQuestionTimeout = editQuestionTimeout;
    }

    public Integer getAnswerLimitNumPerHour() {
        return answerLimitNumPerHour;
    }

    public void setAnswerLimitNumPerHour(Integer answerLimitNumPerHour) {
        this.answerLimitNumPerHour = answerLimitNumPerHour;
    }

    public Integer getArticleLimitNumPerHour() {
        return articleLimitNumPerHour;
    }

    public void setArticleLimitNumPerHour(Integer articleLimitNumPerHour) {
        this.articleLimitNumPerHour = articleLimitNumPerHour;
    }

    public Integer getQuestionLimitNumPerHour() {
        return questionLimitNumPerHour;
    }

    public void setQuestionLimitNumPerHour(Integer questionLimitNumPerHour) {
        this.questionLimitNumPerHour = questionLimitNumPerHour;
    }

    public Boolean getVerifyAnswer() {
        return verifyAnswer;
    }

    public void setVerifyAnswer(Boolean verifyAnswer) {
        this.verifyAnswer = verifyAnswer;
    }

    public Boolean getVerifyArticle() {
        return verifyArticle;
    }

    public void setVerifyArticle(Boolean verifyArticle) {
        this.verifyArticle = verifyArticle;
    }

    public Boolean getVerifyComment() {
        return verifyComment;
    }

    public void setVerifyComment(Boolean verifyComment) {
        this.verifyComment = verifyComment;
    }

    public Boolean getVerifyQuestion() {
        return verifyQuestion;
    }

    public void setVerifyQuestion(Boolean verifyQuestion) {
        this.verifyQuestion = verifyQuestion;
    }

    public Boolean getCodeCreateAnswer() {
        return codeCreateAnswer;
    }

    public void setCodeCreateAnswer(Boolean codeCreateAnswer) {
        this.codeCreateAnswer = codeCreateAnswer;
    }

    public Boolean getCodeCreateArticle() {
        return codeCreateArticle;
    }

    public void setCodeCreateArticle(Boolean codeCreateArticle) {
        this.codeCreateArticle = codeCreateArticle;
    }

    public Boolean getCodeCreateQuestion() {
        return codeCreateQuestion;
    }

    public void setCodeCreateQuestion(Boolean codeCreateQuestion) {
        this.codeCreateQuestion = codeCreateQuestion;
    }


    public Boolean getCodeLogin() {
        return codeLogin;
    }

    public void setCodeLogin(Boolean codeLogin) {
        this.codeLogin = codeLogin;
    }

    public Boolean getCodeRegister() {
        return codeRegister;
    }

    public void setCodeRegister(Boolean codeRegister) {
        this.codeRegister = codeRegister;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;

    }

    public Integer getUserInviteLimit() {
        return userInviteLimit;
    }

    public void setUserInviteLimit(Integer userInviteLimit) {
        this.userInviteLimit = userInviteLimit;
    }
}